package com.ruoyi.hazard.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("hazard_alarm")
@ApiModel(value="HazardAlarm对象", description="隐患弹框预警表")
public class HazardAlarmInfo {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "关联主表")
    private Long hazardId;
    @ApiModelProperty(value = "预警开始")
    @TableField("start_date")

    private Date startDate;
    @ApiModelProperty(value = "预警结束")
    private Date nextDate;
    @ApiModelProperty(value = "类型标记")
    @TableField("alarm_delayed")
    private Integer alarmDelayed;

}
